import {postRequest} from "@/utils/request";
/**
 * 根据条件查询课程信息
 */
export function selectCourseInfoApi(data) {
  return postRequest(
   "/courseInfo/selectCourseInfo",
    data
  );
}
/**
 * 删除课程
 */
export function deleteCourseInfoApi(data) {
    return postRequest(
     "/courseInfo/deleteCourseInfo",
      data
    );
}

/**
 * 修改状态
 */
 export function updateCourseInfoStatusApi(data) {
  return postRequest(
   "/courseInfo/updateCourseInfoStatus",
    data
  );
}
/**
 * 修改课程
 */
export function updateCourseInfoApi(data) {
    return postRequest(
     "/courseInfo/updateCourseInfo",
      data
    );
}
/**
 * 添加课程
 */
export function addCourseInfoApi(data) {
    return postRequest(
     "/courseInfo/addCourseInfo",
      data
    );
}

/**
 * 根据条件查询章节
 */
 export function selectCourseNodeApi(data) {
  return postRequest(
   "/courseNode/selectCourseNode",
    data
  );
}

/**
 * 删除章节
 */
 export function deleteCourseNodeApi(data) {
  return postRequest(
   "/courseNode/deleteCourseNode",
    data
  );
}

/**
 * 修改章节
 */
 export function updateCourseNodeApi(data) {
  return postRequest(
   "/courseNode/updateCourseNode",
    data
  );
}

/**
 * 添加章节
 */
 export function addCourseNodeApi(data) {
  return postRequest(
   "/courseNode/addCourseNode",
    data
  );

}
